import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const maintain: AppRouteModule = {
  path: '/maintain',
  name: 'maintain',
  component: LAYOUT,
  redirect: '/dashboard/analysis',
  meta: {
    orderNo: 10,
    icon: 'ant-design:solution',
    title: t('routes.maintain.title'),
  },
  children: [
    {
      path: 'workorder',
      name: 'workOrder',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.maintain.workOrder'),
      },
    },
    {
      path: 'report',
      name: 'report',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.maintain.report'),
      },
    },
    {
      path: 'standingbook',
      name: 'StandingBook',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
        title: t('routes.maintain.standingBook'),
      },
    },
    {
      path: 'devmanager',
      name: 'devManager',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
        title: t('routes.maintain.devManager'),
      },
    },
  ],
};

export default maintain;
